class Shopping < ActiveRecord::Base
	belongs_to :tour_group
	has_many :shopping_records, :dependent => :destroy
  
  # 进店总计（导游反佣金+所进商店小计之和-返还组团社）
#  def total_cost()
#    m = commission_from_guide
#    for record in shopping_records
#      m += record.total_cost()
#    end
#    m -= return_to_customer
#    return m
#  end
end
